package com.prs.crm.domain.sale;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.fs.BankAccount;
import com.prs.crm.domain.hr.Person;

@Entity
@Table(name = "sale_saleReceivesRgistBillReality")
public class SalesReceivesRegistBillReality extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	
	@ManyToOne
	private BankAccount bankAccount;

	@ManyToOne
	private SalesReceives salesReceives;

	/**
	 * 实际到账日期
	 */

	private Date realityDate;

	/**
	 * 入账金额
	 */

	private Double billAmount;

	/**
	 * 底单编号
	 */

	private String billCode;

	/**
	 * 提交人
	 */
    @ManyToOne
	private Person person;
    
    @Column(columnDefinition ="Integer(2) default '0'") 
    private int judgeValue;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public BankAccount getBankAccount() {
		return bankAccount;
	}

	public void setBankAccount(BankAccount bankAccount) {
		this.bankAccount = bankAccount;
	}

	public SalesReceives getSalesReceives() {
		return salesReceives;
	}

	public void setSalesReceives(SalesReceives salesReceives) {
		this.salesReceives = salesReceives;
	}

	public Date getRealityDate() {
		return realityDate;
	}

	public void setRealityDate(Date realityDate) {
		this.realityDate = realityDate;
	}

	public Double getBillAmount() {
		return billAmount;
	}

	public void setBillAmount(Double billAmount) {
		this.billAmount = billAmount;
	}

	public String getBillCode() {
		return billCode;
	}

	public void setBillCode(String billCode) {
		this.billCode = billCode;
	}

	public Person getPerson() {
		return person;
	}

	public void setPerson(Person person) {
		this.person = person;
	}

	public int getJudgeValue() {
		return judgeValue;
	}

	public void setJudgeValue(int judgeValue) {
		this.judgeValue = judgeValue;
	}
	
    
    
    

}
